#ifndef SCAN_H_
#define SCAN_H_

#define SENSOR_PORT GPIOG
#define SENSOR_PIN GPIO_Pin_5

__INLINE uint8_t sensorTouch(void)
{
    return !(SENSOR_PORT->IDR & SENSOR_PIN);
}

//---Temp
#define KEY_0 0
#define KEY_1 1
#define KEY_2 2
#define KEY_3 3
#define KEY_4 4
#define KEY_5 5
#define KEY_6 6
#define KEY_7 7
#define KEY_8 8
#define KEY_9 9
#define KEY_A 10
#define KEY_B 11
#define KEY_C 12
#define KEY_D 13
#define KEY_STAR 14
#define KEY_DIES 15

void initSensor(void);
void scanMode(void);

#endif /* SCAN_H_ */
